import React, { Component } from 'react'
import Child from './Child'

export default class Parent extends Component {
  state={
    salary: 12.5,
    obj: {
      age: 19,
    },
  }
  changeAge = () => {
    console.log(111)
  }
  render() {
    return (
      <div>
         <h3>父：黑马武汉前端 64 期平均工资{this.state.salary}</h3>
         <hr/>
        <Child 
        salary={this.state.salary}
        age={18}
        obj={this.state.obj}
        bBar={true}
        changeAge={this.changeAge}
        jsxEle={<h2>Hello React</h2>} 
         ></Child>
      </div>
    )
  }

}
